<%@ page language="java" contentType="text/html; charset=UTF-8" pageEncoding="UTF-8"%>
<%@ taglib prefix="spring" uri="http://www.springframework.org/tags"%>
<%@ taglib prefix="form" uri="http://www.springframework.org/tags/form"%>
<%@ taglib prefix="c" uri="http://java.sun.com/jsp/jstl/core"%>
<%@ taglib prefix="fmt" uri="http://java.sun.com/jsp/jstl/fmt"%>
<%@ taglib prefix="fn" uri="http://java.sun.com/jsp/jstl/functions"%>
<%@ taglib prefix="sec" uri="http://www.springframework.org/security/tags"%>

<%@include file="/common/head.jsp" %>

<body class="gray-bg">
    <div class="wrapper wrapper-content animated fadeInRight">
		<form action="${ctx }/admin/agentServicePackage/save?id=${n.id }" id="detail-form" class="form-horizontal" method="post">
			<div class="form-group">
				 <!-- 代理商用户 -->
                 <label class="col-sm-2 control-label">代理商用户</label>
                 <div class="col-sm-4">
                 	<input type="hidden" id="user-id" name="user.id" value="${n.user.id }" class="form-control">
                 	<input type="text"  placeholder="请选择代理商用户" class="form-control" id="user-name" value="${n.user.id }" 
                 		onclick="bring({
						                 	url:'${ctx}/admin/user/search',
						                 	name: 'id',
						                 	idInput: 'user-id',
						                 	nameInput: 'user-name'
						                 	})" />
						                 	
                 </div>
                 
				 <!-- 代理商 -->
                 <label class="col-sm-2 control-label">代理商</label>
                 <div class="col-sm-4">
                 	<input type="hidden" id="agent-id" name="agent.id" value="${n.agent.id }" class="form-control">
                 	<input type="text"  placeholder="请选择代理商" class="form-control" id="agent-name" value="${n.agent.id }" 
                 		onclick="bring({
						                 	url:'${ctx}/admin/agent/search',
						                 	name: 'id',
						                 	idInput: 'agent-id',
						                 	nameInput: 'agent-name'
						                 	})" />
						                 	
                 </div>
            </div>
            <div class="form-group">     
                 
				 <!-- 服务包 -->
                 <label class="col-sm-2 control-label">服务包</label>
                 <div class="col-sm-4">
                 	<input type="hidden" id="servicePackage-id" name="servicePackage.id" value="${n.servicePackage.id }" class="form-control">
                 	<input type="text"  placeholder="请选择服务包" class="form-control" id="servicePackage-name" value="${n.servicePackage.id }" 
                 		onclick="bring({
						                 	url:'${ctx}/admin/servicePackage/search',
						                 	name: 'id',
						                 	idInput: 'servicePackage-id',
						                 	nameInput: 'servicePackage-name'
						                 	})" />
						                 	
                 </div>
                 
				 <!-- 服务包个数 -->
                 <label class="col-sm-2 control-label">服务包个数</label>
                 <div class="col-sm-4">
                 	<input type="text" class="form-control" name="count" value="${n.count }">
                 </div>
            </div>
            <div class="form-group">     
                 
             </div>	
        	
		</form>
</div>

<%@include file="/common/foot.jsp" %>

</body>
</html>
